import os, sys
from mod_python import apache

from django.core.handlers.modpython import ModPythonHandler

# dodanie wszystkich katalogow z eggs do path
egg_path = os.path.normpath(os.path.join(os.path.dirname(__file__), '..', 'eggs'))
paths = [os.path.join(egg_path, d) for d in os.listdir(egg_path) if d[0]!='.'] + ['/home/cygnet2/apps/iszachy/parts/facebook-python-sdk/src']

sys.path = paths + sys.path

def handler(req):
    # mod_python hooks into this function.
    return ModPythonHandler()(req) 

